<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fdk-aac: original/libSACdec/src/sac_process.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fdk-aac
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ed137715e08969a186ec660e8ae6e2fb.html">original</a></li><li class="navelem"><a class="el" href="dir_7a422512ea44e382d598b3d41431ca3b.html">libSACdec</a></li><li class="navelem"><a class="el" href="dir_fed01bce0543f0855d9418429f995c68.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">sac_process.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Polyphase Filterbank.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;sac_dec.h&quot;</code><br />
</div>
<p><a href="sac__process_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac28645610c8416233e86ad605ad5df75"><td class="memItemLeft" align="right" valign="top"><a id="ac28645610c8416233e86ad605ad5df75"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SpatialDecApplyPhase</b> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, FIXP_SGL alpha, int lastSlotOfParamSet)</td></tr>
<tr class="separator:ac28645610c8416233e86ad605ad5df75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9880e5da1bec168ca2175e885da0438"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#ae9880e5da1bec168ca2175e885da0438">SpatialDecQMFAnalysis</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, const PCM_MPS *inData, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> ts, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> bypassMode, FIXP_DBL **qmfReal, FIXP_DBL **qmfImag, const int numInputChannels)</td></tr>
<tr class="memdesc:ae9880e5da1bec168ca2175e885da0438"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply QMF Analysis Filterbank.  <a href="sac__process_8h.html#ae9880e5da1bec168ca2175e885da0438">More...</a><br /></td></tr>
<tr class="separator:ae9880e5da1bec168ca2175e885da0438"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6642ba84825a9bc883b4286bea17468e"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#a6642ba84825a9bc883b4286bea17468e">SpatialDecFeedQMF</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, FIXP_DBL **qmfInDataReal, FIXP_DBL **qmfInDataImag, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> ts, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> bypassMode, FIXP_DBL **qmfReal, FIXP_DBL **qmfImag, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> numInputChannels)</td></tr>
<tr class="memdesc:a6642ba84825a9bc883b4286bea17468e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Feed spatial decoder with external qmf data.  <a href="sac__process_8h.html#a6642ba84825a9bc883b4286bea17468e">More...</a><br /></td></tr>
<tr class="separator:a6642ba84825a9bc883b4286bea17468e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac75e112187cdcacf2414da0c79553a2f"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#ac75e112187cdcacf2414da0c79553a2f">SpatialDecHybridAnalysis</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, FIXP_DBL **qmfInputReal, FIXP_DBL **qmfInputImag, FIXP_DBL **hybOutputReal, FIXP_DBL **hybOutputImag, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> ts, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> numInputChannels)</td></tr>
<tr class="memdesc:ac75e112187cdcacf2414da0c79553a2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply Hybrdid Analysis Filterbank.  <a href="sac__process_8h.html#ac75e112187cdcacf2414da0c79553a2f">More...</a><br /></td></tr>
<tr class="separator:ac75e112187cdcacf2414da0c79553a2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4065f9a6f5d96ac067bd0cebf4f9ec35"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#a4065f9a6f5d96ac067bd0cebf4f9ec35">SpatialDecCreateX</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, FIXP_DBL **hybInputReal, FIXP_DBL **hybInputImag, FIXP_DBL **pxReal, FIXP_DBL **pxImag)</td></tr>
<tr class="memdesc:a4065f9a6f5d96ac067bd0cebf4f9ec35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create X data.  <a href="sac__process_8h.html#a4065f9a6f5d96ac067bd0cebf4f9ec35">More...</a><br /></td></tr>
<tr class="separator:a4065f9a6f5d96ac067bd0cebf4f9ec35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21f69033295fc1213e5ab2359c1bc46e"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#a21f69033295fc1213e5ab2359c1bc46e">SpatialDecApplyM1_CreateW_Mode212</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, const <a class="el" href="struct_s_p_a_t_i_a_l___b_s___f_r_a_m_e__struct.html">SPATIAL_BS_FRAME</a> *frame, FIXP_DBL **xReal, FIXP_DBL **xImag, FIXP_DBL **vReal, FIXP_DBL **vImag)</td></tr>
<tr class="memdesc:a21f69033295fc1213e5ab2359c1bc46e"><td class="mdescLeft">&#160;</td><td class="mdescRight">MPS212 combined version of apply M1 parameters and create wet signal.  <a href="sac__process_8h.html#a21f69033295fc1213e5ab2359c1bc46e">More...</a><br /></td></tr>
<tr class="separator:a21f69033295fc1213e5ab2359c1bc46e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1572da9243bd51dd29e1331fbd4146d4"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#a1572da9243bd51dd29e1331fbd4146d4">SpatialDecApplyM2</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> ps, const FIXP_SGL alpha, FIXP_DBL **wReal, FIXP_DBL **wImag, FIXP_DBL **hybOutputRealDry, FIXP_DBL **hybOutputImagDry, FIXP_DBL **hybOutputRealWet, FIXP_DBL **hybOutputImagWet)</td></tr>
<tr class="memdesc:a1572da9243bd51dd29e1331fbd4146d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply M2 parameters.  <a href="sac__process_8h.html#a1572da9243bd51dd29e1331fbd4146d4">More...</a><br /></td></tr>
<tr class="separator:a1572da9243bd51dd29e1331fbd4146d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa51046e8ed8912100a9a9af07e6d6934"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#aa51046e8ed8912100a9a9af07e6d6934">SpatialDecApplyM2_Mode212_ResidualsPlusPhaseCoding</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> ps, const FIXP_SGL alpha, FIXP_DBL **wReal, FIXP_DBL **wImag, FIXP_DBL **hybOutputRealDry, FIXP_DBL **hybOutputImagDry)</td></tr>
<tr class="memdesc:aa51046e8ed8912100a9a9af07e6d6934"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply M2 parameter for 212 mode with residualCoding and phaseCoding.  <a href="sac__process_8h.html#aa51046e8ed8912100a9a9af07e6d6934">More...</a><br /></td></tr>
<tr class="separator:aa51046e8ed8912100a9a9af07e6d6934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d626838d50962dad1a01633bbb120e6"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#a3d626838d50962dad1a01633bbb120e6">SpatialDecApplyM2_Mode212</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> ps, const FIXP_SGL alpha, FIXP_DBL **wReal, FIXP_DBL **wImag, FIXP_DBL **hybOutputRealDry, FIXP_DBL **hybOutputImagDry)</td></tr>
<tr class="memdesc:a3d626838d50962dad1a01633bbb120e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply M2 parameter for 212 mode, upmix from mono to stereo.  <a href="sac__process_8h.html#a3d626838d50962dad1a01633bbb120e6">More...</a><br /></td></tr>
<tr class="separator:a3d626838d50962dad1a01633bbb120e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b381f1c4a2ef10bdd7cdb9aac22c2b6"><td class="memItemLeft" align="right" valign="top">SACDEC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sac__process_8h.html#a4b381f1c4a2ef10bdd7cdb9aac22c2b6">SpatialDecSynthesis</a> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> ts, FIXP_DBL **hybOutputReal, FIXP_DBL **hybOutputImag, PCM_MPS *timeOut, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> numInputChannels, const <a class="el" href="struct_f_d_k__channel_map_descr.html">FDK_channelMapDescr</a> *const mapDescr)</td></tr>
<tr class="memdesc:a4b381f1c4a2ef10bdd7cdb9aac22c2b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert Hybrid input to output audio data.  <a href="sac__process_8h.html#a4b381f1c4a2ef10bdd7cdb9aac22c2b6">More...</a><br /></td></tr>
<tr class="separator:a4b381f1c4a2ef10bdd7cdb9aac22c2b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac65465ac011f85817b1447f85189260c"><td class="memItemLeft" align="right" valign="top"><a id="ac65465ac011f85817b1447f85189260c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SpatialDecBufferMatrices</b> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self)</td></tr>
<tr class="separator:ac65465ac011f85817b1447f85189260c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30678fc4f3c5843542d8d0fa7f5acf53"><td class="memItemLeft" align="right" valign="top"><a id="a30678fc4f3c5843542d8d0fa7f5acf53"></a>
FIXP_DBL&#160;</td><td class="memItemRight" valign="bottom"><b>getChGain</b> (<a class="el" href="structspatial_dec__struct.html">spatialDec</a> *self, <a class="el" href="machine__type_8h.html#afff0ab3629a68bc1bb3b2a2f4296173f">UINT</a> ch, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> *scale)</td></tr>
<tr class="separator:a30678fc4f3c5843542d8d0fa7f5acf53"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Polyphase Filterbank. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a21f69033295fc1213e5ab2359c1bc46e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21f69033295fc1213e5ab2359c1bc46e">&#9670;&nbsp;</a></span>SpatialDecApplyM1_CreateW_Mode212()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecApplyM1_CreateW_Mode212 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_s_p_a_t_i_a_l___b_s___f_r_a_m_e__struct.html">SPATIAL_BS_FRAME</a> *&#160;</td>
          <td class="paramname"><em>frame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>xReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>xImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>vReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>vImag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>MPS212 combined version of apply M1 parameters and create wet signal. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>A spatial decoder handle. </td></tr>
    <tr><td class="paramname">xReal</td><td>Downmix and residual X data as input. </td></tr>
    <tr><td class="paramname">xImag</td><td>Downmix and residual X data as input. </td></tr>
    <tr><td class="paramname">vReal</td><td>output data: [0] direct signal (V); [1] wet signal (W). </td></tr>
    <tr><td class="paramname">vImag</td><td>output data: [0] direct signal (V); [1] wet signal (W).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error status. </dd></dl>

</div>
</div>
<a id="a1572da9243bd51dd29e1331fbd4146d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1572da9243bd51dd29e1331fbd4146d4">&#9670;&nbsp;</a></span>SpatialDecApplyM2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecApplyM2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const FIXP_SGL&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>wReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>wImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputRealDry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputImagDry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputRealWet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputImagWet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply M2 parameters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>A spatial decoder handle. </td></tr>
    <tr><td class="paramname">ps</td><td>Signals parameter band from where M2 parameter to use. </td></tr>
    <tr><td class="paramname">alpha</td><td>Smoothing factor between current and previous parameter band. Rangeability between 0.f and 1.f. </td></tr>
    <tr><td class="paramname">wReal</td><td>Wet input data. </td></tr>
    <tr><td class="paramname">wImag</td><td>Wet input data. </td></tr>
    <tr><td class="paramname">hybOutputRealDry</td><td>Dry output data. </td></tr>
    <tr><td class="paramname">hybOutputImagDry</td><td>Dry output data. </td></tr>
    <tr><td class="paramname">hybOutputRealWet</td><td>Wet output data. </td></tr>
    <tr><td class="paramname">hybOutputImagWet</td><td>Wet output data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error status. </dd></dl>

</div>
</div>
<a id="a3d626838d50962dad1a01633bbb120e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d626838d50962dad1a01633bbb120e6">&#9670;&nbsp;</a></span>SpatialDecApplyM2_Mode212()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecApplyM2_Mode212 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const FIXP_SGL&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>wReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>wImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputRealDry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputImagDry</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply M2 parameter for 212 mode, upmix from mono to stereo. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>[i] A spatial decoder handle. </td></tr>
    <tr><td class="paramname">ps</td><td>[i] Signals parameter band from where M2 parameter to use. </td></tr>
    <tr><td class="paramname">alpha</td><td>[i] Smoothing factor between current and previous parameter band. Rangeability between 0.f and 1.f. </td></tr>
    <tr><td class="paramname">wReal</td><td>[i] Wet input data. </td></tr>
    <tr><td class="paramname">wImag</td><td>[i] Wet input data. </td></tr>
    <tr><td class="paramname">hybOutputRealDry</td><td>[o] Dry output data. </td></tr>
    <tr><td class="paramname">hybOutputImagDry</td><td>[o] Dry output data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error </dd></dl>

</div>
</div>
<a id="aa51046e8ed8912100a9a9af07e6d6934"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa51046e8ed8912100a9a9af07e6d6934">&#9670;&nbsp;</a></span>SpatialDecApplyM2_Mode212_ResidualsPlusPhaseCoding()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecApplyM2_Mode212_ResidualsPlusPhaseCoding </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const FIXP_SGL&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>wReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>wImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputRealDry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputImagDry</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply M2 parameter for 212 mode with residualCoding and phaseCoding. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>[i] A spatial decoder handle. </td></tr>
    <tr><td class="paramname">ps</td><td>[i] Signals parameter band from where M2 parameter to use. </td></tr>
    <tr><td class="paramname">alpha</td><td>[i] Smoothing factor between current and previous parameter band. Rangeability between 0.f and 1.f. </td></tr>
    <tr><td class="paramname">wReal</td><td>[i] Wet input data. </td></tr>
    <tr><td class="paramname">wImag</td><td>[i] Wet input data. </td></tr>
    <tr><td class="paramname">hybOutputRealDry</td><td>[o] Dry output data. </td></tr>
    <tr><td class="paramname">hybOutputImagDry</td><td>[o] Dry output data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error </dd></dl>

</div>
</div>
<a id="a4065f9a6f5d96ac067bd0cebf4f9ec35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4065f9a6f5d96ac067bd0cebf4f9ec35">&#9670;&nbsp;</a></span>SpatialDecCreateX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecCreateX </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybInputReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybInputImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>pxReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>pxImag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create X data. </p>
<p>Returns a pointer list over Xchannels pointing to downmix input channels and to residual channels when provided.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>A spatial decoder handle. </td></tr>
    <tr><td class="paramname">hybInputReal</td><td>Downmix channel hybrid data as input. </td></tr>
    <tr><td class="paramname">hybInputImag</td><td>Downmix channel hybrid data as input. </td></tr>
    <tr><td class="paramname">pxReal</td><td>Pointer to hybrid and residual data as output. </td></tr>
    <tr><td class="paramname">pxImag</td><td>Pointer to hybrid and residual data as output.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error status. </dd></dl>

</div>
</div>
<a id="a6642ba84825a9bc883b4286bea17468e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6642ba84825a9bc883b4286bea17468e">&#9670;&nbsp;</a></span>SpatialDecFeedQMF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecFeedQMF </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfInDataReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfInDataImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>ts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>bypassMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>numInputChannels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Feed spatial decoder with external qmf data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>A spatial decoder handle. </td></tr>
    <tr><td class="paramname">qmfInDataReal</td><td>External qmf downmix data as input. </td></tr>
    <tr><td class="paramname">qmfInDataImag</td><td>External qmf downmix data as input. </td></tr>
    <tr><td class="paramname">ts</td><td>Signals time slot in input buffer to process. </td></tr>
    <tr><td class="paramname">qmfReal</td><td>Downmix channel qmf output data. </td></tr>
    <tr><td class="paramname">qmfImag</td><td>Downmix channel qmf output data. </td></tr>
    <tr><td class="paramname">numInputChannels</td><td>Number of input channels. Might differ from self-&gt;numInputChannels.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error status. </dd></dl>

</div>
</div>
<a id="ac75e112187cdcacf2414da0c79553a2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac75e112187cdcacf2414da0c79553a2f">&#9670;&nbsp;</a></span>SpatialDecHybridAnalysis()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecHybridAnalysis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfInputReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfInputImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>ts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>numInputChannels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply Hybrdid Analysis Filterbank. </p>
<p>Calculates hybrid data on downmix input data. Residual hybrid signals will also be calculated on current slot if available.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>A spatial decoder handle. </td></tr>
    <tr><td class="paramname">qmfInputReal</td><td>Downmix channel qmf data as input. </td></tr>
    <tr><td class="paramname">qmfInputImag</td><td>Downmix channel qmf data as input. </td></tr>
    <tr><td class="paramname">hybOutputReal</td><td>Downmix channel hybrid output data. </td></tr>
    <tr><td class="paramname">hybOutputImag</td><td>Downmix channel hybrid output data. </td></tr>
    <tr><td class="paramname">ts</td><td>Signals time slot in spatial frame to process. </td></tr>
    <tr><td class="paramname">numInputChannels</td><td>Number of input channels. Might differ from self-&gt;numInputChannels.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error status. </dd></dl>

</div>
</div>
<a id="ae9880e5da1bec168ca2175e885da0438"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9880e5da1bec168ca2175e885da0438">&#9670;&nbsp;</a></span>SpatialDecQMFAnalysis()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecQMFAnalysis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PCM_MPS *&#160;</td>
          <td class="paramname"><em>inData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>ts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>bypassMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>qmfImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>numInputChannels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply QMF Analysis Filterbank. </p>
<p>Calculates qmf data on downmix input time data. Delaylines will be applied if necessaray.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>A spatial decoder handle. </td></tr>
    <tr><td class="paramname">inData</td><td>Downmix channel time data as input. </td></tr>
    <tr><td class="paramname">ts</td><td>Signals time slot offset for input buffer. </td></tr>
    <tr><td class="paramname">qmfReal</td><td>Downmix channel qmf output data. </td></tr>
    <tr><td class="paramname">qmfImag</td><td>Downmix channel qmf output data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error status. </dd></dl>

</div>
</div>
<a id="a4b381f1c4a2ef10bdd7cdb9aac22c2b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b381f1c4a2ef10bdd7cdb9aac22c2b6">&#9670;&nbsp;</a></span>SpatialDecSynthesis()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SACDEC_ERROR SpatialDecSynthesis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structspatial_dec__struct.html">spatialDec</a> *&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>ts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>hybOutputImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PCM_MPS *&#160;</td>
          <td class="paramname"><em>timeOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>numInputChannels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_f_d_k__channel_map_descr.html">FDK_channelMapDescr</a> *const&#160;</td>
          <td class="paramname"><em>mapDescr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert Hybrid input to output audio data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hSpaceSynthesisQmf</td><td>A spatial decoder handle. </td></tr>
    <tr><td class="paramname">ts</td><td>Signals time slot in spatial frame to process. </td></tr>
    <tr><td class="paramname">hybOutputReal</td><td>Hybrid data as input. </td></tr>
    <tr><td class="paramname">hybOutputImag</td><td>Hybrid data as input. </td></tr>
    <tr><td class="paramname">timeOut</td><td>audio output data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error status. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
